package com.worksystem.Service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.worksystem.Dao.TestDao;
import com.worksystem.entity.Subject;
import com.worksystem.entity.Test;

@Component
public class TestServiceImp implements TestService {
	
	@Resource
	private TestDao testDao;

	@Override
	public List<Test> getTestsBySubjectId(Integer sid) {
		return testDao.getTestsBySubjectId(sid);
	}

	@Override
	public Subject getSubjectById(Integer sid) {
		return testDao.getSubjectById(sid);
	}
	@Override
	public Object postteststograde(String testjson,Integer uid,Integer subjectid,String time){
		return testDao.postteststograde(testjson, uid, subjectid, time);
	}
}
